<template>
	<view class="main">
		<u-navbar :is-back="true" title="商家公告" :background="background" border-bottom="false" back-icon-color="#000000" title-color="#33312D"
			title-bold="true"></u-navbar>
			<view class="whole">
				<view class="notice" v-for="(item,index) in notice.node" :key="index">
					<view class="time">
						{{formatTime(item.create_time,'YYYY-MM-DD hh:mm')}}
					</view>
					<view class="content">
						<view class="title">
							系统通知
						</view>
						<text class="txt">
							{{item.content}}
						</text>
					</view>
				</view>
				<view class="notice" v-for="(item,index) in notice.money" :key="index">
					<view class="time">
						{{formatTime(item.status_time,'YYYY-MM-DD hh:mm')}}
					</view>
					<view class="content">
						<view class="title">
							提现审核通知
						</view>
						<text class="txt">
							您在{{formatTime(item.status_time,'YYYY-MM-DD hh:mm')}}发起的提现审核已通过，实际到账以结算银行为准。
						</text>
					</view>
				</view>
			</view>
		
	</view>
</template>
<script>
	export default {
		data() {
			return {
				background: {
					backgroundColor: '#fff'
				},
				notice:[]

			}
		},
		onLoad() {
this.getnotice()

		},
		mounted() {

		},
		onShow() {},
		methods: {
			getnotice(){
				global.$http.request({
					url:'/shopapi/user/notice',
					data:{
						token:uni.getStorageSync('token')
					}
				}).then(res=>{
					console.log(res.data.data);
					this.notice=res.data.data
				})
			},
		

		}
	}
</script>
<style lang="scss">
	page {
	font-family: PingFang SC;
		width: 750rpx;
		margin: 0 auto;
		background-color: #f7f7f7;

		.main {
		
			width: 750rpx;
			margin: 0 auto;
			.whole{
				.notice{
					display: flex;
					flex-direction: column;
					align-items: center;
					.time{
						font-size: 24rpx;
						font-weight: 400;
						color: #666666;
						padding: 35rpx 0 28rpx 0;
					}
					.content{
						width: 730rpx;
						margin: 0 auto;
						background-color: #fff;
						display: flex;
						flex-direction: column;
						align-items: center;
						.title{
							padding: 29rpx 0 34rpx 0;
							font-size: 28rpx;
							font-weight: bold;
							color: #000000;
							
						}
						.txt{
							font-size: 22rpx;
							font-weight: bold;
							color: #666666;
							padding: 0 34rpx 50rpx 34rpx;
							line-height: 40rpx;
						}
					}
				}
			}
		}
	}
</style>
